import React from 'react';
import { DatePicker } from 'antd';

const { RangePicker } = DatePicker;
const DateRangePicker = props => {
    const { onChange } = props;
    // 日期format类型
    const handleOk = (value) => {
        if (onChange) {
            onChange(value)
        }
    }
    return (
        <RangePicker
            showTime={{
                hideDisabledOptions: true
            }}
            {...props}
            onChange={handleOk}
        />
    )
}
export default DateRangePicker;
